﻿//https://tinypng.com/
var tinify_test = require("./tinify_test");

var open_path='E:/MyProjects/HBuilderProjects/cpp3/web-mobile/res/raw-assets/';//要压缩的图片路径
var save_path='E:/MyProjects/HBuilderProjects/cpp3/web-mobile/res/raw-assets/';//保存已经压缩的图片路径
var tinify_key='MXhG4pJqcz6m1CyNjS9tjxn9pHnkyZgF';//tinypng 的key
var compression_size=0.02;//多少M才压缩,0代表全部压缩

tinify_test.start(open_path,save_path,tinify_key,compression_size);
